#include "person.h"


/**
 * @file preson.cpp
 * @author  Paweł Hanejko <phanejko@gmail.com>
 * @version 1.0
 *
 * @section LICENSE
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details at
 * http://www.gnu.org/copyleft/gpl.html
 *
 * @section DESCRIPTION
 *
 * Plik źródłowy zawiera implementację klasy Person,
 * która przechowuje dane o użytkowniku.
 */


Person::Person(QString name,QString lastname,QString email,QStringList urls)
{
    this->m_name=name;
    this->m_lastname=lastname;
    this->m_email=email;
    this->m_images=new QList<QImage*>;
    this->m_urls=urls;
    for (int i = 0; i < urls.size(); ++i)
       this->m_images->append(new QImage(urls.at(i)));
}

QString Person::name() const
{
    return m_name;
}

QString Person::lastname() const
{
    return m_lastname;
}

QString Person::email() const
{
    return m_email;
}

QList<QImage*> Person::images() const
{
    return *m_images;
}
QStringList Person::urls() const
{
    return m_urls;
}
